import yaml


class MgtYaml:
    @classmethod
    def read(cls, file):
        with open(file, encoding="utf-8") as file_obj:
            yaml_data = yaml.safe_load(file_obj)
        return yaml_data


if __name__ == '__main__':
    print(MgtYaml.read("../tests/data/calculator_data.yaml"))
